package com.wr.hangzhounewlight.controller.frontend;

import com.wr.hangzhounewlight.obj.dto.frontend.OutputSelectDTO;
import com.wr.hangzhounewlight.obj.dto.frontend.R;
import com.wr.hangzhounewlight.service.frontend.OutputSelectService;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author yuanzhizhuo
 * createDate 2025/11/14
 */
@CrossOrigin
@RestController
public class OutputSelectController {

    private final OutputSelectService outputSelectService;

    public OutputSelectController(OutputSelectService outputSelectService) {
        this.outputSelectService = outputSelectService;
    }

    @PostMapping("/query-output")
    public R queryOutput(@RequestBody OutputSelectDTO dto) {
        return outputSelectService.queryOutput(dto);
    }

}
